from django.db import models


# Create your models here.

class Clazz(models.Model):
    name = models.CharField(max_length=100, unique=True)
    student_number = models.IntegerField()
    class_room = models.CharField(max_length=100)
    headmaster = models.CharField(max_length=100)
    state = models.SmallIntegerField(choices=((1, "正常"), (2, "结课")), default=1)
    class_time = models.DateTimeField()
    create_time = models.DateTimeField(auto_now_add=True)

    class Meta:
        db_table = 'clazz'
